import { request } from '@/utils/request.ts'


export default {

    /**
     * 获取验证码
     * @returns
     */
    getMnue (params:any) {
        return request({
            url: 'system/x/navesList',
            method: 'post',
            data: params
        })
    },

    /**
     * 用户登录
     * @param {object} params
     * @returns
     */
    getSwiper (params = {}) {
        return request({
            url: 'system/x/swiperList',
            method: 'post',
            data: params
        })
    },
    /**
     * 获取分类信息
     * @param {object} params
     * @returns
     */
    getCatList (params = {}) {
        return request({
            url: 'system/x/catList',
            method: 'post',
            data: params
        })
    },
    /**
     * 获取热门信息
     * @param {object} params
     * @returns
     */
    getHotArticle (params = {}) {
        return request({
            url: 'system/x/artList',
            method: 'post',
            data: params
        })
    },
    /**
     * 获取文章详情
     * @param {object} params
     * @returns
     */
    getArticle (params = {}) {
        return request({
            url: 'system/x/article',
            method: 'post',
            data: params
        })
    }
}
